package org.alvin.cloud.data.system;

import com.google.common.collect.Lists;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("test")
public class TestDataController {

    @RequestMapping("list")
    public List<String> getList(){
        List<String> list = Lists.newArrayList();
        for(int i = 0 ; i < 10 ;i++){
            list.add(new String("code:" + i));
        }
        return list;
    }
}
